#include "tcpserver_send.h"

Tcpserver_send::Tcpserver_send(QTcpServer *s)
{
    server = s;
}

void Tcpserver_send::run()
{
    qDebug() << "run";
    connect(server, Tcpserver::sig_sendToClient, this, &Tcpserver_send::serversendclient);
    qDebug() << "run2";
}

void Tcpserver_send::serversendclient()
{
    qDebug() << "服务器主动发送信息到客户端: ";
    QByteArray ba;
    ba += "收到";
    qDebug() << "服务器主动发送信息到客户端: 2";
}
